﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using MobileWebMvc.Filters;
using Smart.Web.Mobile;

namespace MobileWebMvc.Controllers
{
    /// <summary>
    /// 
    /// </summary>
    public class MobileInputViewModel
    {
        public string Data { get; set; }
    }

    /// <summary>
    /// 
    /// </summary>
    [MobileResponse]
    public class MobileController : Controller
    {
        /// <summary>
        /// 
        /// </summary>
        /// <returns></returns>
        public ActionResult Index()
        {
            return View( new MobileInputViewModel() );
        }

        /// <summary>
        /// 
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        [AcceptVerbs( HttpVerbs.Post )]
        public virtual ActionResult Index(MobileInputViewModel model)
        {
            return View( model );
        }

        /// <summary>
        /// 
        /// </summary>
        /// <returns></returns>
        public virtual ActionResult Docomo()
        {
            return View( "Pictgrams", MobileSettings.Default.CarrierSettings[Carrier.DoCoMo] );
        }

        /// <summary>
        /// 
        /// </summary>
        /// <returns></returns>
        public virtual ActionResult Au()
        {
            return View( "Pictgrams", MobileSettings.Default.CarrierSettings[Carrier.Au] );
        }

        /// <summary>
        /// 
        /// </summary>
        /// <returns></returns>
        public virtual ActionResult Softbank()
        {
            return View( "Pictgrams", MobileSettings.Default.CarrierSettings[Carrier.Softbank] );
        }
    }
}
